﻿<!-- BEGIN MAIN CONTENT -->
<div class="row">
    <div class="col-md-12">
        <!-- BEGIN: ACCORDION DEMO -->
        <div class="portlet light">
            <div class="portlet-title page-bar">
                <ul class="page-breadcrumb pull-right">
                    <li>
                        <i class="fa fa-home"></i>
                        <a href="#/home.html">管理中心</a>
                        <i class="fa fa-angle-right"></i>
                    </li>
                    <li>
                        <a href="#/GgcmsCompanyList.html">企业信息管理</a>
                        <i class="fa fa-angle-right"></i>
                    </li>
                    <li>
                        <a href="javascript:;" data-ng-bind="$state.current.data.pageTitle"></a>
                    </li>
                </ul>
                <div class="caption font-green-sharp">
                    <i class="icon-note font-green-sharp"></i>
                    <span class="caption-subject bold uppercase" data-ng-bind="$state.current.data.pageTitle"></span>
                </div>
            </div>
            <div class="portlet-body">
                <div class="row">
                    <div class="col-xs-12">
                        <form class="form-horizontal" name="ggcmsForm" role="form" novalidate>
                            <input type="hidden" ng-model="data.Id">
                            <div class="form-body">
                                <div class="form-group" ng-class="{'has-error' : ggcmsForm.Cname.$invalid&&!ggcmsForm.Cname.$pristine}">
                                    <label class="col-md-3 control-label">企业名称:</label>
                                    <div class="col-md-9">
                                        <input type="text" name="Cname" minlength="2" maxlength="50" class="form-control" placeholder="请输入企业名称" required ng-model="data.Cname">
                                        <div class="help-block" ng-show="ggcmsForm.Cname.$invalid&&!ggcmsForm.Cname.$pristine"> 请输入企业名称 </div>
                                    </div>
                                </div>
                                <div class="form-group" ng-class="{'has-error' : ggcmsForm.Address.$invalid&&!ggcmsForm.Address.$pristine}">
                                    <label class="col-md-3 control-label">企业地址:</label>
                                    <div class="col-md-9">
                                        <input type="text" name="Address" minlength="2" maxlength="50" class="form-control" placeholder="请输入企业地址" ng-model="data.Address">
                                        <div class="help-block" ng-show="ggcmsForm.Address.$invalid&&!ggcmsForm.Address.$pristine"> 请输入企业地址 </div>
                                    </div>
                                </div>
                                <div class="form-group" ng-class="{'has-error' : ggcmsForm.btnSelectLogo.$invalid&&!ggcmsForm.btnSelectLogo.$pristine}">
                                    <label class="col-md-3 control-label">企业Logo图片:</label>
                                    <div class="col-md-9">
                                        <input type="text" class="form-control input-medium inline-block" ng-model="data.Clogo" name="Clogo" id="Clogo" placeholder="可以直接填写Url地址" />
                                        <button class="btn blue" type="button" ngf-select="editSvr.fileUpload($file,'Clogo',false,0)" ng-model="currentInfo.btnSelectLogo" name="btnSelectLogo" ngf-pattern="'image/*'" ngf-accept="'image/*'" ngf-max-size="200KB"> <i class="icon-picture"></i> 选择图片 </button>
                                        <button class="btn green" type="button" name="btnPreviewLogo" ng-if="data.Clogo" ng-click="editSvr.filePreview('Clogo')"> <i class="icon-eye"></i> 预览 </button>
                                        <button class="btn red" type="button" name="btnClearLogo" ng-if="data.Clogo" ng-click="editSvr.fileClear('Clogo')"> <i class="icon-trash"></i> 清除 </button>
                                        <div class="help-block" ng-show="ggcmsForm.btnSelectLogo.$invalid&&!ggcmsForm.btnSelectLogo.$pristine"> 只能上传小于200kb的图片 </div>
                                    </div>
                                </div>
                                <div class="form-group" ng-class="{'has-error' : ggcmsForm.Phone.$invalid&&!ggcmsForm.Phone.$pristine}">
                                    <label class="col-md-3 control-label">联系电话:</label>
                                    <div class="col-md-9">
                                        <input type="text" name="Phone" minlength="2" maxlength="30" class="form-control" placeholder="联系电话" ng-model="data.Phone">
                                        <div class="help-block" ng-show="ggcmsForm.Phone.$invalid&&!ggcmsForm.Phone.$pristine"> 联系电话 </div>
                                    </div>
                                </div>
                                <div class="form-group" ng-class="{'has-error' : ggcmsForm.Contacts.$invalid&&!ggcmsForm.Contacts.$pristine}">
                                    <label class="col-md-3 control-label">联系人:</label>
                                    <div class="col-md-9">
                                        <input type="text" name="Contacts" minlength="2" maxlength="30" class="form-control" placeholder="联系人姓名" ng-model="data.Contacts">
                                        <div class="help-block" ng-show="ggcmsForm.Contacts.$invalid&&!ggcmsForm.Contacts.$pristine"> 联系人姓名 </div>
                                    </div>
                                </div>
                                <div class="form-group" ng-class="{'has-error' : ggcmsForm.Tmpldir.$invalid&&!ggcmsForm.Tmpldir.$pristine}">
                                    <label class="col-md-3 control-label">使用风格:</label>
                                    <div class="col-md-9">
                                        <select class="form-control" name="Tmpldir" id="Tmpldir" ng-model="data.Tmpldir" ng-options="kv.type as kv.name for kv in sysDicts.companyStyle"></select>
                                        <div class="help-block" ng-show="ggcmsForm.Tmpldir.$invalid&&!ggcmsForm.Tmpldir.$pristine"> 使用风格 </div>
                                    </div>
                                </div>
                                <div class="form-group" ng-class="{'has-error' : ggcmsForm.Systype.$invalid&&!ggcmsForm.Systype.$pristine}" ng-if="false">
                                    <label class="col-md-3 control-label">所属系统</label>
                                    <div class="col-md-9">
                                        <select class="form-control" name="Systype" id="Systype" ng-model="data.Systype" ng-options="kv.type as kv.name for kv in sysDicts.systemType"></select>
                                        <div class="help-block" ng-show="ggcmsForm.Systype.$invalid&&!ggcmsForm.Systype.$pristine"> Systype </div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-actions">
                                <hr/>
                                <div class="row">
                                    <div class="col-md-12 text-center">
                                        <button class="btn green" ng-click="editSvr.update(data)" ng-disabled="ggcmsForm.$invalid||saveing"> <span class="fa fa-save"></span> 保存</button>
                                    </div>
                                </div>
                            </div>
                        </form>

                    </div>
                </div>
            </div>
        </div>
        <!-- END: ACCORDION DEMO -->
    </div>
</div>
<pic-pre-view url="currentInfo.pic" close="editSvr.previewClose()" ng-if="currentInfo.picShow"></pic-pre-view>
<!-- END MAIN CONTENT -->